package com.zxjbyte.yiyi.framework.oss.factory;

import com.zxjbyte.yiyi.framework.oss.storage.db.DbOssConfigWrapper;
import com.zxjbyte.yiyi.framework.oss.storage.local.LocalOssConfigWrapper;
import com.zxjbyte.yiyi.framework.oss.storage.s3.S3OssConfigWrapper;

/**
 * @Author zhangxingjia
 * @Date 2023/5/15 14:42
 * @Version: 1.0
 */
public interface OssConfigFactory {

    /**
     * 获取S3对象存储配置
     * @return
     */
    S3OssConfigWrapper getS3OssConfig();

    /**
     * 获取本地对象存储配置
     * @return
     */
    LocalOssConfigWrapper getLocalOssConfig();

    /**
     * 获取本地对象存储配置
     * @return
     */
    DbOssConfigWrapper getDbOssConfig();

    /**
     * 重新加载redis配置缓存
     * @param storageCode
     */
    void reloadRedisCache(String storageCode);
}
